You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By changing the compile_hint parameter type to Arc instead of Rc, we can reuse the constants that are already included in Program. This avoids cloning all the constants.
This PR is breaking, as the constants parameter of compile_hints was changed from Rc to Arc. This allows to reuse the already extracted constants, and not have to clone it.
By changing the compile_hint parameter type to `Arc` instead of `Rc`, we
can reuse the constants that are already included in `Program`. This
avoids cloning all the constants.
With this commit, there is a 9.8% performance increase when replaying
mainnet block 10000, compared to 2.5.0.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.98%. Comparing base (f0022cd) to head (763b4cc). ⚠️ Report is 1 commits behind head on main.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avoid cloning constants when compiling hints
Description
By changing the compile_hint parameter type to
Arcinstead ofRc, we can reuse the constants that are already included inProgram. This avoids cloning all the constants.This PR is breaking, as the
constantsparameter ofcompile_hintswas changed fromRctoArc. This allows to reuse the already extracted constants, and not have to clone it.